<?
	include('chksession.php');
	include('conn.php');
	session_start();
 	
  	  $msg='';
	   $opbaltranid= $_REQUEST['opbaltranid'];
	   $opbaldate= $_REQUEST['opbaldate'];
	   $custid = $_REQUEST['custid'];
	   $trancat= $_REQUEST['trancat'];
	   $amtpaid= $_REQUEST['amtpaid'];
	   $amtreceived= $_REQUEST['amtreceived'];
	   $comment= $_REQUEST['comment'];
	   $enteredby=$_SESSION['username'];
		
		$sql="update opbalmast set opbaldate='$opbaldate',custid='$custid',trancat='$trancat',amtpaid='$amtpaid',amtreceived='$amtreceived',comment='$comment',enteredby='$enteredby',entrydt=sysdate() where opbaltranid='$opbaltranid'";
			
	
		$res=mysql_query($sql);
		if($res)
		$msg='Record updated successfully...';					

?>	